#ifndef __LG_POWER_DET_H
#define __LG_POWER_DET_H

#include "delay.h"
#include "gpio.h"

#define AC_DET_PIN          GPIO_PTH1
#define AC_DET_IN           PTH1_IN

typedef enum
{
   POWER_UNKNOW,
   POWER_AC_220V,
   POWER_DC_24V,
}POWER_TYPE_T;


void lgInitPowerDetect();

POWER_TYPE_T   sys_power_type();


#endif

